//
//  DXModelHelper.m
//  iDxyer
//
//  Created by sun black on 11-11-23.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import "WCModelHelper.h"

@implementation WCModelHelper

+(void)populateValues:(NSObject *)model fromDictionary:(NSDictionary *)dict{
    NSArray *keys = [dict allKeys];
    for (NSString *key in keys) {
        id value = [dict objectForKey:key];
        if (value && ![[NSNull null] isEqual:value]) {
            [model setValue:[dict objectForKey:key] forKey:key];    
        }
    }
}

@end
